/* Reset style sheet */

/* 目前项目中使用富文本编辑器需要注释，如果你项目中没有使用富文本编辑器，可以取消注释 */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  border: 0;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  padding: 0;
  margin: 0;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

html,
body,
#app,
#watermark {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

/* 解决 h1 标签在 webkit 内核浏览器中文字大小失效问题 */
:-webkit-any(article, aside, nav, section) h1 {
  font-size: 2em;
}

:focus-visible {
  outline: none;
}


/* 设置滚动条整体 */
::-webkit-scrollbar {
  width: 8px; /* 控制滚动条宽度 */
  height: 8px; /* 控制水平滚动条高度 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* 亮色模式 */
  border-radius: 10px; /* 圆角 */
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  background-color: #d4d4d8; /* 滑块颜色（浅色模式） */
  border-radius: 10px; /* 圆角 */
  border: 2px solid #fff; /* 可选：滑块边框 */
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* 滚动条滑块在悬停时的颜色 */
::-webkit-scrollbar-thumb:hover {
  background-color: #a1a1aa;
}

/* 设置滚动条在点击时的效果 */
::-webkit-scrollbar-thumb:active {
  background-color: #333;
}

/* 🔥 适配暗黑模式 */
.dark ::-webkit-scrollbar-track {
  background-color: #3f3f46; /* 深色模式背景 */
}

.dark ::-webkit-scrollbar-thumb {
  background-color: #52525b; /* 深色滑块 */
  border-color: #3f3f46; /* 滚动条边框颜色 */
}

.dark ::-webkit-scrollbar-thumb:hover {
  background-color: #71717a; /* 悬停时更亮 */
}

.dark ::-webkit-scrollbar-thumb:active {
  background-color: #a1a1aa; /* 点击时更明显 */
}
